<extend name="Public:base" />
<!-- 网站标题 -->
<block name="title">修改选项</block>
<block name="appendheader">
	<!-- Validform_v5.3.2验证框架 -->
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Validform/css/Validform_v5.3.2.css"/>
	<script type="text/javascript" src="__PUBLIC__/Validform/js/Validform_v5.3.2_min.js"></script>
	<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui.js"></script>
    <!--loading bootstrap js-->
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/bootstrap-hover-dropdown/bootstrap-hover-dropdown.js"></script>
    <script type="text/javascript"  src="__PUBLIC__/MAdmin/js/html5shiv.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/js/respond.min.js"></script>
    <script type="text/javascript"  src="__PUBLIC__/MAdmin/vendors/metisMenu/jquery.metisMenu.js"></script>
    <script type="text/javascript"  src="__PUBLIC__/MAdmin/vendors/slimScroll/jquery.slimscroll.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/jquery-cookie/jquery.cookie.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/iCheck/icheck.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/iCheck/custom.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/jquery-notific8/jquery.notific8.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/jquery-highcharts/highcharts.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/js/jquery.menu.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/jquery-pace/pace.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/holder/holder.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/responsive-tabs/responsive-tabs.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/jquery-news-ticker/jquery.newsTicker.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/moment/moment.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
    <!--CORE JAVASCRIPT-->
    <script type="text/javascript" src="__PUBLIC__/MAdmin/js/main.js"></script>
    <!--LOADING SCRIPTS FOR PAGE-->
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/select2/select2.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/bootstrap-select/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/vendors/multi-select/js/jquery.multi-select.js"></script>
    <script type="text/javascript" src="__PUBLIC__/MAdmin/js/ui-dropdown-select.js"></script>
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/font-awesome/css/font-awesome.min.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/bootstrap/css/bootstrap.min.css">
    <!--LOADING STYLESHEET FOR PAGE-->
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/select2/select2-madmin.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/bootstrap-select/bootstrap-select.min.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/multi-select/css/multi-select-madmin.css">
    <!--Loading style vendors-->
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/animate.css/animate.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/jquery-pace/pace.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/iCheck/skins/all.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/jquery-notific8/jquery.notific8.min.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/bootstrap-daterangepicker/daterangepicker-bs3.css">
    <!--Loading style-->
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/css/themes/style1/orange-blue.css" class="default-style">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/css/themes/style1/orange-blue.css" id="theme-change" class="style-change color-change">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/css/style-responsive.css">
	<script type="text/javascript">
		$(function() {
			$("#WebMenu-2000").addClass('active');	//选中父菜单
			$("#WebMenu-3100").addClass('active');	//选中当前菜单
		});
		
		$(function() {
			var editor;
			var myform=$("#myform").Validform({
				tiptype:3,
				label:".label",
				showAllError:true,
				postonce:true,//开启二次提交防御
				ajaxPost:false,
				beforeSubmit:function(curform) {
					//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
					lockScreen();
				},
				callback:function(data){
					$.Hidemsg();
				}
			});
			myform.addRule([{
			
			ele:"#name",
			datatype:"*1-100",
			nullmsg:"请输入名称"
			}]);
		});
	</script>
</block>
<!-- 当前位置 -->
<block name="breadcrumb">
	<div class="page-header pull-left">
		<div class="page-title">修改选项</div>
	</div>
	<ol class="breadcrumb page-breadcrumb pull-left">
		<li><i class="fa fa-home"></i>&nbsp;<a href="__APP__?g=Admin">首页</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li><a href="#">基础数据</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li><a href="__APP__?g=Admin&m=SystemOption&a=index">班级管理</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li class="active">修改选项</li>
	</ol>
</block>
<!-- 网页主内容区 -->
<block name="main_content">
	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-blue">
				<div class="panel-heading">修改选项</div>
				<div class="panel-body pan">
					<form id="myform" name="myform" action="__APP__?g=Admin&m=Class&a=update" method="post" class="form-horizontal form-seperated" >
						<div class="form-body">
						    <div class="form-group">
								<label for="schoolid" class="col-md-2 control-label">学校 <span class='require'>*</span></label>
								<div style="display:inline" class="col-md-7">
									<select id="schoolid" name="schoolid" class="form-control" onchange="is_link()">
										<volist name="school_list" id="vo">
											<option value="{$vo.id}" <eq name="vo.id" value="$list.schoolid">selected</eq>>{$vo.name}</option>
										</volist>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label for="code" class="col-md-2 control-label">班级代码 </span></label>
								<div class="col-md-7"> 
									<input type="text" id="code" name="code" value="{$list.code}" class="form-control" />
								</div>
							</div>
							<div class="form-group">
								<label for="name" class="col-md-2 control-label">班级名称 <span class='require'>*</span></label>
								<div class="col-md-7"> 
									<input type="text" id="name" name="name" value="{$list.name}" class="form-control" />
								</div>
							</div>
						</div>
						<div class="form-actions text-left">
							<div class="col-md-offset-2 col-md-7">
								<input type="hidden" name="id" value="{$list.id}" />
								<button type="submit" class="btn btn-primary">提交</button>&nbsp;&nbsp;
								<button type="button" class="btn btn-green" onclick="history.go(-1);">取消</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</block>
